package com.openbravo.bean;

public class PaymentInfoVoucher extends PaymentInfo {
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 2788208207387792899L;
	private double m_dTotal;
    protected String m_sVoucherID;
    
    /** Creates a new instance of PaymentInfoFree */
    public PaymentInfoVoucher(double dTotal,String m_sVoucherID) {
        m_dTotal = dTotal;
        this.m_sVoucherID=m_sVoucherID;
    }
    
    public PaymentInfo copyPayment(){
        return new PaymentInfoStoreCard(m_dTotal,m_sVoucherID);
    }    
    
    public String getName() {
        return "voucher";
    }   
    public double getTotal() {
        return m_dTotal;
    }

	@Override
	public String getTransactionID() {
		
		return m_sVoucherID;
	}

	public String getM_sVoucherID() {
		return m_sVoucherID;
	}

	public void setM_sVoucherID(String m_sVoucherID) {
		this.m_sVoucherID = m_sVoucherID;
	}
	
	
}